package com.wlr.study.leetcode;

/**
 * @author lrwang
 * @version 1.0
 * @date 2021/6/20 23:56
 */
public class ListNode {
    int val;
    ListNode next;
    ListNode() {}

    @Override
    public String toString() {
        return "ListNode{" +
                "val=" + val +
                ", next=" + next +
                '}';
    }

    ListNode(int val) { this.val = val; }
    ListNode(int val, ListNode next) { this.val = val; this.next = next; }
}
